package com.zhuojy.equity.mall.admin.dal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhuojy.equity.mall.admin.common.entity.Accounts;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AccountsMapper extends BaseMapper<Accounts> {
    /**
     * 资金账户条查分页
     *
     * @param accounts
     * @param page
     * @return
     */
    IPage<Accounts> findAccountsPagination(@Param("accounts") Accounts accounts, Page<Accounts> page);


    /**
     * 资金账户状态停用
     *
     * @param id
     */
    void updateStatusting(Integer id);

    /**
     * 启用
     *
     * @param id
     */
    void updateStatusqi(Integer id);

    /**
     * 资金账户动态下拉列表框
     * @return
     */
    List<Accounts> findOptions();

    /**
     * 修改为默认1
     * @param id
     */
    void updateDefault(Long id);

    /**
     * 修改为默认2
     * @param id
     */
    void updateDefaultTow(Long id);
}
